package se.sics.drsm;

import se.sics.kompics.launch.Scenario;
import se.sics.kompics.launch.Topology;

public class PPExecutor {


    public static final void main(String[] args) {

        Topology topology1 = new Topology() {
            /**
             *
             */
            private static final long serialVersionUID = 1L;

            {
                node(1, "127.0.0.1", 22031);
                node(2, "127.0.0.1", 22032);
                node(3, "127.0.0.1", 22033);
                //node(4, "127.0.0.1", 22034);
                //node(5, "127.0.0.1", 22035);
                //node(6, "127.0.0.1", 22036);
                //node(7, "127.0.0.1", 22037);
                //node(8, "127.0.0.1", 22038);
                //node(9, "127.0.0.1", 22039);
//				link(1, 2, 0, 0.5).bidirectional();
//				link(1, 3, 0, 0.5).bidirectional();
//				link(1, 4, 0, 0.5).bidirectional();
                defaultLinks(1000, 0);
                // link(1, 2, 0, 0.99).bidirectional();
            }
        };


        Scenario scenario1 =
                new Scenario(DRSMContainerMain.class) {
                    {
                        command(1, "cmdString", 2000);
                        command(2, "cmdString", 4000);
                        command(3, "cmdString", 5500);
                        //command(4, "cmdString", 7000);

                        //command(5, "cmdString", 7500);
                        //command(6, "cmdString", 8000);
                        //command(7, "cmdString", 8500);
                        //command(8, "cmdString", 9000);

                        //command(9, "cmdString", 9500);
                    }
                };
        scenario1.executeOn(topology1);
        try {
            Thread.sleep(100000);
        } catch (Exception e) {
        }
        System.exit(0);
    }
}
